package com.sdtw.bookshop.shop.mapper;

import com.sdtw.bookshop.shop.bean.BookClassInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BookClassMapper {

    @Select("select * from bookclass")
    List<BookClassInfo> findAll();

    @Select("select * from bookclass where bcid = #{bcid}")
    List<BookClassInfo> findById(Integer bcid);
}
